package cn.ly.jvm;

import java.util.ArrayList;
import java.util.List;

public class HeapOOM {
	
	static class OOMObject{
		
	}
	
	public static void main(String[] args) throws InterruptedException {
		List<OOMObject> list = new ArrayList<OOMObject>();
		Thread.sleep(1000*30);
		while(true){
			list.add(new OOMObject());
			//System.out.println("list add()");
		}
	}

}
